package mrusanov.bonus

import mrusanov.staff.Coach

object ExperienceBonus {
   private val ONE_HUNDRED = BigDecimal(100)

   def apply(coach:Coach, exp:BigDecimal):BigDecimal = {
     val coachBonus = coach.level / ONE_HUNDRED
     exp * coachBonus
   }
}
